package com.jasperframework.boot.common.modules.redis.config;

import java.io.Serializable;
import java.util.Map;

/**
 * <p>redis消息监听器的委托类</p>
 *
 * @author: daizhao 16:11 2025/1/3 0003
 */
public interface RedisMessageDelegate {

    void handleMessage(String message);
    void handleMessage(Map message);
    void handleMessage(byte[] message);
    void handleMessage(Serializable message);
    // pass the channel/pattern as well
    void handleMessage(Serializable message, String channel);
}
